package cn.wolfcode.wolf2w.respository;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 游记评论持久化操作接口
 */
@Repository
public interface TravelCommentRepository extends MongoRepository<TravelComment, String> {


    /**
     * 根据游记id 查询 评论
     * @param travelId
     * @return
     */
    List<TravelComment> queryByTravelId(String travelId);
}
